]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shellDBus: Add mode parameter to AcceleratorActivated signal
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 12 Nov 2014 19:49:24 +0000 (20:49 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 19 Dec 2014 13:11:55 +0000 (14:11 +0100)
This will allow g-s-d to handle actions differently based on the
current mode - namely, allow the power button when locked, but
make sure to never show any dialogs in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=711682

js/ui/shellDBus.js

index 147b5f4e9754c19430053c791b4750abc8a3842a..7e45d84adf9789b9f19a61ae6a31fd8decea185b 100644 (file)
@@ -196,7 +196,8 @@ const GnomeShell = new Lang.Class({
         let connection = this._dbusImpl.get_connection();
         let info = this._dbusImpl.get_info();
         let params = { 'device-id': GLib.Variant.new('u', deviceid),
-                       'timestamp': GLib.Variant.new('u', timestamp) };
+                       'timestamp': GLib.Variant.new('u', timestamp),
+                       'action-mode': GLib.Variant.new('u', Main.actionMode) };
         connection.emit_signal(destination,
                                this._dbusImpl.get_object_path(),
                                info ? info.name : null,